package com.lavegue.service;

import java.util.List;

import com.lavegue.common.Page;
import com.lavegue.common.Service;
import com.lavegue.dao.CompanyDao;
import com.lavegue.model.Company;

public interface CompanyService  extends Service<Company, Integer, CompanyDao>  {
	/**
	 * 查询所有公司
	 * @return
	 */
	public List<Company> findByCompany();
	
	/**
	 * 根据公司名称或者ID查询
	 * @return
	 */
	public Company findCompanyByName(String companyName,Integer companyId);
	
	//根据公司名称查询
	 public Page<Company> getAllCompanyByName(int pageNo,int pageSize,String name);
	
	
}
